<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        li {
            list-style: none;
            background-color: pink;
            margin-top: 10px;
        }
    </style>
  </head>
  <body>
    <ul>
    </ul>
    <script src="./axios.js"></script>
    <script>
        
      async function getData() {
        const res = await axios.get("http://localhost:3000/getmodile");
        console.log(res.data);
        let ul = document.querySelector('ul')
        res.data.forEach(item => {
            let li = document.createElement('li')
            li.innerText = item
            ul.appendChild(li)
        })
      }
      getData()
    </script>
  </body>
</html>
